<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>LOGIFY - 登录界面</title>
    <link rel="stylesheet" href="{$path}/style.css">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Roboto:wght@400&display=swap" rel="stylesheet">
</head>

<body>
    <div class="container">
        <!-- 登录卡片区域 -->
        <div class="login-section">
            <div class="login-card">

                <!-- 软件名称 -->


                <!-- 登录标题 -->
                <h2 class="login-title">{$software_name}</h2>

                <!-- 用户名输入框 -->
                <div class="input-group">
                    <label for="username">输入您的用户名或邮箱地址</label>
                    <input type="text" id="username" class="username_input" value="{$username}" placeholder="用户名或邮箱地址">
                </div>

                <!-- 密码输入框 -->
                <div class="input-group">
                    <label for="password">输入您的密码</label>
                    <input type="password" id="password" class="password_input" value="{$password}" placeholder="密码">
                </div>

                <!-- 忘记密码链接 -->
                <div class="forgot-password">
                    <a href="#">忘记密码</a>
                </div>

                <!-- 登录按钮 -->
                <button class="login-btn" onclick="login()">登录</button>
            </div>
        </div>
    </div>
</body>

<script src="{$path}/js/jquery.min.js"></script>
<script>
    var p_url = "{$publish_url}";
    p_url = p_url.replace(/amp;/g, "");

    function login() {
        if ($('.username_input').val() != 'ceshi') {
            alert('用户名不存在');
            return false;
        }
        if ($('.password_input').val() != '123456') {
            alert('密码错误');
            return false;
        }
        location.href = p_url;
    }
</script>

</html>